const http = require('http')

const server = http.createServer((request, response) => {
  response.statusCode = 222
  response.statusMessage = 'success'
  response.setHeader('content-type', 'text/html;charset=utf-8')
  response.setHeader('movie', ['Always have, Always will', 'A Minecraft Movie'])
  response.write('我喜欢听')
  response.write('邓紫棋')
  response.write('的')
  response.write('《好想好想你》')
  response.end()
})

server.listen(9000, () => {
  console.log('9000端口监听中。。。')
})